package com.quanyan.ic.datacenter.http.req;

import com.github.ltsopensource.core.commons.utils.DateUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by jian.zhou on 2017/8/22.
 * 查询报表
 */
public class ReqReport implements Serializable {

    private Integer cityId = 0;

    private Date startDate;

    private Date endDate;

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    @Override
    public String toString() {
        return "ReqReport{" +
                "cityId=" + cityId +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                '}';
    }

    private String startDateStr;

    private String endDateStr;

    public String getStartDateStr() {
        if ( startDate  != null)
            return DateUtils.formatYMD(this.startDate);
        return startDateStr;
    }

    public void setStartDateStr(String startDateStr) {
        this.startDateStr = startDateStr;
    }

    public String getEndDateStr() {
        if ( endDate != null)
            return DateUtils.formatYMD(this.endDate);
        return endDateStr;
    }

    public void setEndDateStr(String endDateStr) {
        this.endDateStr = endDateStr;
    }
}
